/*
 * EstadoClaseSeleccionada.java
 * 
 * Copyright (C) 2008 David Castellanos Serrano
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package dpoo.figuras.estadoclase;

import dpoo.figuras.*;
import java.awt.*;
import java.awt.geom.Rectangle2D;


public class EstadoClaseSeleccionada implements EstadoClase {

    public void paint(Graphics g, FiguraClase foo) {
        Graphics2D g2 = (Graphics2D) g;
        
        int w = foo.getWidth();
        int h = foo.getHeight();
        
        g2.setStroke(new BasicStroke(3.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER));
        g2.setColor(new Color(255,195,76));
        
        g2.fillRect(0, 0, w-1, h-1);
        g2.setColor(Color.BLACK);        
        g2.draw(new Rectangle2D.Double(0, 0, w-1, h-1));
    }
}

